import Layout from '@/layout'

export const routerList = [
  {
    path: '/permission',
    component: Layout,
    redirect: '/permission/rolelist',
    name: 'resourcerbacrbac',
    meta: { title: '权限管理', icon: 'el-icon-s-help' },
    children: [
      {
        path: 'rolelist',
        name: 'resourcerbacindex',
        component: () => import('@/views/permissionMgt/index.vue'),
        meta: { title: '角色管理'}
      },
      {
        path: 'usermgt',
        name: 'resourceuserindex',
        component: () => import('@/views/permissionMgt/user/index.vue'),
        meta: { title: '用户管理' }
      }
    ]
  },
  {
    path: '/admin',
    component: Layout,
    redirect: '/admin/collectelib',
    name: 'resourceadminadmin',
    meta: { title: '管理员', icon: 'el-icon-user-solid' },
    children: [
      {
        path: 'collectelib',
        name: 'resourceadmincollectelib',
        component: () => import('@/views/admin/index.vue'),
        meta: { title: '采集库'}
      },
      {
        path: 'organizer',
        name: 'resourceadminorganizer',
        component: () => import('@/views/permissionMgt/user/index.vue'),
        meta: { title: '主办方信息' }
      }
    ]
  },
  {
    path: '/resource',
    component: Layout,
    redirect: '/resource/collectionlib',
    name: 'resourceindexindex',
    meta: { title: '资源', icon: 'table' },
    children: [
      {
        path: 'collectionlib',
        name: 'resourceindexcollectionlib',
        component: () => import('@/views/resource/index'),
        meta: { title: '资源库' }
      },
      {
        path: 'historylib',
        name: 'resourceindexhistorylib',
        component: () => import('@/views/tree/index'),
        meta: { title: '历史活动库', }
      }
    ]
  },
  {
    path: '/backstage',
    component: Layout,
    redirect: '/backstage/collectionset',
    name: 'Resource',
    meta: { title: '后台管理', icon: 'el-icon-s-management' },
    hidden: true,
    children: [
      {
        path: 'collectionset',
        name: 'collectionset',
        component: () => import('@/views/backstage/index'),
        meta: { title: '采集设置' }
      },
      {
        path: 'tree',
        name: 'Tree',
        component: () => import('@/views/backstage/operaterecord'),
        meta: { title: '操作记录'}
      }
    ]
  },
  {
    path: '/electricpin',
    component: Layout,
    redirect: '/electricpin/privatelib',
    meta: { title: '电销', icon: 'el-icon-s-data' },
    hidden: true,
    children: [
      {
        path: 'privatelib',
        name: 'Privatelib',
        component: () => import('@/views/electricpin/index'),
        meta: { title: '私海库' }
      },
      {
        path: 'tree',
        name: 'Tree',
        component: () => import('@/views/backstage/operaterecord'),
        meta: { title: '历史活动库'}
      }
    ]
  },
]